package com.sp.pay.dto;


import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import com.sp.pay.dto.company.CompanyDto;

@XmlRootElement
@XmlSeeAlso({CompanyDto.class})
public class QueryDto<T> implements Serializable {
    private T dto;
    //开始点
    private int begin;
    //每页最大行数
    private int max;

    public QueryDto(T dto, int begin, int max){
        this.dto = dto;
        this.begin = begin;
        this.max = max;
    }
    public T getDto() {
        return dto;
    }

    public void setDto(T dto) {
        this.dto = dto;
    }

    public int getBegin() {
        return begin;
    }

    public void setBegin(int begin) {
        this.begin = begin;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }
}
